package fem2.element;

import math2.MathUtilities;

import org.junit.Test;

import fem2.AbstractStructuralCrackDemo;
import fem2.Element;
import fem2.MaterialModel;
import fem2.MeshPart;
import fem2.element.crack_sda.SKONConstantJumpTetrahedraElement;
import fem2.enu.EchoLevelType;
import fem2.material.cohesive_law.CohesiveLaw;

public class PatchTestSKONConstantJumpTetrahedraElement extends
		PatchTestSOSConstantJumpTetrahedraElement {

	@Override
	public Element createElement(MeshPart mp, MaterialModel mm, CohesiveLaw cl) {
		Element e = new SKONConstantJumpTetrahedraElement(mp, mm, cl);
		e.setEchoLevel(EchoLevelType.AUX4);
		return e;
	}

	@Test
	public void test1() {
		AbstractStructuralCrackDemo demo = new PatchTestSKONConstantJumpTetrahedraElement();

		double[] lambda = MathUtilities.createLambdaArray(0.0, 0.1, 1);

		/*
		 * TODO: fail, debug the code
		 */

		demo.run(lambda);
	}
}
